//
//  HLMatchNightTimeView.m
//  YueYue
//
//  Created by hulu001 on 2023/8/14.
//

#import "HLMatchNightTimeView.h"

@implementation HLMatchNightTimeView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupView];
    }
    return self;
}

- (void)setupView
{
    self.numLabel = [[QMUILabel alloc] qmui_initWithFont:UIFontBoldMake(17) textColor:[UIColor qmui_colorWithHexString:@"#5B73EF"]];
    _numLabel.text = @"00";
    _numLabel.backgroundColor = [[UIColor qmui_colorWithHexString:@"#5B73EF"] colorWithAlphaComponent:0.1];
    _numLabel.contentEdgeInsets = UIEdgeInsetsMake(4, 4, 4, 4);
    [self addSubview:_numLabel];
    [_numLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.mas_equalTo(0);
    }];
    
    self.unitLabel = [[UILabel alloc] qmui_initWithFont:UIFontMake(15) textColor:HLTextColor1];
    _unitLabel.text = @"时";
    [self addSubview:_unitLabel];
    [_unitLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_numLabel.mas_right).offset(10);
        make.centerY.right.mas_equalTo(0);
    }];
}


@end
